1: | if(true,x,y) | → x | |
2: | if(false,x,y) | → y | |
3: | if(x,y,y) | → y | |
4: | if(if(x,y,z),u,v) | → if(x,if(y,u,v),if(z,u,v)) | |
5: | if(x,if(x,y,z),z) | → if(x,y,z) | |
6: | if(x,y,if(x,y,z)) | → if(x,y,z) | |
7: | IF(if(x,y,z),u,v) | → IF(x,if(y,u,v),if(z,u,v)) | |
8: | IF(if(x,y,z),u,v) | → IF(y,u,v) | |
9: | IF(if(x,y,z),u,v) | → IF(z,u,v) | |